package com.alander.nexusgo.framework.redis.starter.key;

import org.springframework.stereotype.Component;

@Component
public class UserCacheKeyBuilder extends RedisKeyBuilder {

    private static final String USER_INFO = "userInfo";
    private static final String USER_TAG = "userTag";
    private static String USER_TAG_LOCK_KEY = "userTagLock";

    public String buildUserInfoKey(String userId) {
        return buildKey(USER_INFO, userId);
    }

    public String buildUserTagLockKey(String userId) {
        return buildKey(USER_TAG_LOCK_KEY, userId);
    }

    public String buildUserTagKey(String userId) {
        return buildKey(USER_TAG, userId);
    }
}